package com.qk.common.enums;

/**
 * @Author:gzc
 * @Date: 2025/10/10 19:57
 * @Description:
 */
public enum BizEnum implements  Code{
    GENERATE_ERROR("您的操作失败,请稍后重试!", 10000),
    PARAM_ERROR("参数错误", 10001),
    Login_ERROR("用户名或密码错误", 10002),
    CUSTOMER_EXIST("该课程下有客户,不允许删除", 10003),
    USER_EXIST("该角色下有用户,不允许删除", 10004),
    STATUS_ERROR("用户已被禁用,无法登录", 10005),
    ADDRESS_CODE_ERROR("获取区域编码失败", 10006),
    WEATHER_ERROR("获取天气数据失败", 10006),
    UPLOAD_ERROR("上传失败", 10007),
    LOGISTICS_ERROR("物流信息查询失败", 10008),
    CLUE_ALLOCATION_FAIL("线索分配失败", 10010),
    CLUE_TRACK_FAIL("线索跟进失败", 10012),
    CLUE_FAKE_FAIL("伪线索失败", 10013),
    CLUE_CONVERT_BUSINESS_FAIL("转商机失败", 10014),
    BUSINESS_ALLOCATION_FAIL("商机分配失败", 10015),
    BUSINESS_TRACK_FAIL("商机跟进失败", 10016),
    BUSINESS_RECOVERY_FAIL("商机回收失败", 10017),
    BUSINESS_CONVERT_CUSTOMER_FAIL("商机转客户失败", 10018),
    CLUE_NOT_EXIST("线索不存在", 10019),
    ACTIVITY_CLUE_EXIST("该活动下有线索,不允许删除", 10020),
    BUSINESS_EXIST("该课程下有商机,不允许删除", 10003)
    ;

    private final String msg;
    private final int code;

    BizEnum(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }
    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
